//
//  UIFont+YHExtension.swift
//  Adorbee
//
//  Created by amovision on 2024/11/26.
//

import UIKit

public extension UIFont {
  static func num(_ size: Any, _ wt: UIFont.Weight = .regular) -> UIFont {
    if let size = size as? NSNumber {
      return systemFont(ofSize: CGFloat(size.floatValue + 1), weight: wt)
    } else {
      return systemFont(ofSize: 17, weight: wt)
    }
  }
}
